#!/bin/sh

#解除root权限
passwd root
passwd root --unlock

#安装ssh
apt install openssh-server -y

#开启root登录
echo -e "\n PermitRootLogin yes \n" > /etc/ssh/sshd_config

systemctl restart ssh